package cn.js.controller;

import cn.js.dto.User;
import com.js.fegin.UserFeignClientApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @Author Js
 * @Create 2024-11-23 22:47
 * @Version 1.0
 */
@RestController
public class ApiController implements UserFeignClientApi {




    @Override
    public User getByApiId(Long id) throws InterruptedException {
//        Thread.sleep(1000);
        return new User(id,"李四:公共模块提供的服务" + id, "我是李四",null);
    }



}
